// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_o.p_a;

import com.nnee.p_f.cls_b;
import com.nnee.p_pr.p_atom.cls_u;
import org.json.JSONObject;

public class cls_a
{

    public cls_a(JSONObject jsonobject)
    {
        a = jsonobject.optString("docid");
        b = jsonobject.optString("title");
        c = jsonobject.optInt("replyCount");
        d = jsonobject.optInt("order");
        e = jsonobject.optInt("priority");
        f = jsonobject.optString("imgsrc");
        h = jsonobject.optInt("hasImg");
        g = jsonobject.optString("digest");
        i = jsonobject.optString("ptime");
        j = jsonobject.optString("url");
    }

    public String a()
    {
        return a;
    }

    public String b()
    {
        return b;
    }

    public int c()
    {
        return c;
    }

    public int d()
    {
        return d;
    }

    public int e()
    {
        return e;
    }

    public String f()
    {
        return f;
    }

    public int g()
    {
        return h;
    }

    public String h()
    {
        return g;
    }

    public String i()
    {
        return i;
    }

    public String j()
    {
        return j;
    }

    public cls_u k()
    {
        cls_u u1 = new cls_u();
        u1.h(true);
        u1.q(a);
        u1.r(b);
        u1.j(g);
        if(f() != null && f().length() > 0)
        {
            cls_b b1 = u1.a("link", null);
            b1.b("rel", "x-stanza-cover-image-thumbnail");
            String s1;
            Object aobj[];
            if(f().startsWith("http://"))
            {
                s1 = f().substring("http://".length());
            } else
            {
                int i1 = f().indexOf("//");
                s1 = f().substring(i1 + 2);
            }
            aobj = new Object[1];
            aobj[0] = s1;
            b1.b("href", String.format("http://s.cimg.163.com/i/%s.110x90.auto.jpg", aobj));
        }
        return u1;
    }

    private static final String k = "docid";
    private static final String l = "title";
    private static final String m = "replyCount";
    private static final String n = "order";
    private static final String o = "priority";
    private static final String p = "imgsrc";
    private static final String q = "hasImg";
    private static final String r = "digest";
    private static final String s = "ptime";
    private static final String t = "url";
    String a;
    String b;
    int c;
    int d;
    int e;
    String f;
    String g;
    int h;
    String i;
    String j;
}
